<?php

class ForumsController extends MController {
    public function showAction() {
        $params = $this->getRequest()->getGet();
        $forum = Forum::find($params['f']);
        $topics = Topic::find('all', array(
                                            'conditions' => array('ml_forum_forum_id = ?', $params['f']),
                                            'order' => 'last_post_time DESC'));
        $this->render('show', array(
                                'topics'=>$topics,
                                'forum'=>$forum));
    }
}

?>